-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create cid #21
Create cid #21
Conversation
mix.exs
Outdated
{:ex_multihash, "~> 2.0"} | ||
{:ex_multihash, "~> 2.0"}, | ||
{:jason, "~> 1.1"}, | ||
{:cid, git: "git@github.com:SimonLab/ex-cid.git"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This project should not have a dependency on ex-cid
.
@nelsonic I have updated this now 👍 |
@@ -33,6 +33,7 @@ defmodule Cid do | |||
iex> Cid.cid([1,2,3,"four"]) | |||
"invalid data type" | |||
""" | |||
@spec cid(String.t | map() | struct()) :: String.t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@RobStallion & @Danwhy good work on adding property-based-testing. 🎉 |
@nelsonic Will do. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RobStallion looking much better. Thanks! 🎉
Can't wait to apply this to our https://github.com/dwyl/phoenix-ecto-append-only-log-example 😉
Create functions that create same CIDs as IPFS. Function takes a string, map or struct.
Currently uses ex_cid#7 #11
Have (temporarily) renamed the module to ex_cid. See #22 for more info on this.
Adds tests and doc tests.